package book;

public class Booklist {
    private Book[] books = new Book[100];
    private int cnt=0;
    public Booklist() {
       this.books[0] =new Book("三国演义","罗贯中",50,"小说");
       this.books[1]=new Book("朝花夕拾","鲁迅",45,"杂文集");
       this.books[2]=new Book("数据结构","安妮史蒂夫",40,"教科书");
       this.cnt=3;
    }
    public Book getBooks(int pos) {
        return books[pos];
    }
    public void addBook(Book b, int pos) {
        books[pos]=b;
    }
    public int getCount() {
        return cnt;
    }
    public void getSize(int size) {
        this.cnt=size;
    }
}
